Skip to content

export Function

Url ​

Constructor ​

ts
 KeyboardButton.Url( text, url )
ParameterTypeDescription
textstringLabel text on the button.
urlstringHTTP or tg:// URL to be opened when the button is pressed. Links tg://user?id=user_id can be used to mention a user by their identifier without using a username, if this is allowed by their privacy settings.

Return: KeyboardButtonPayload

A modern, powerful library for building your Telegram bots, with seamless support for both JavaScript and Typescript.